#ifndef _ENCODER_H_
#define _ENCODER_H_

#include <vector>

class Encoder{
    public:
        Encoder();
        void setDataLength(int length);
        std::vector<char> encode();

    protected:
        int data_length;
        std::vector<char> header;
        std::vector<char> data_buff;
        std::vector<char> footer;
};

class PosEncoder :public Encoder{
    public:
        PosEncoder();
        std::vector<char> encode(int x, int y);
};

#endif
